package com.liuwa.knowledge.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.liuwa.common.annotation.*;
import com.liuwa.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 出版社对象 k_publisher
 * 
 * @author liuwa
 * @date 2025-03-31 22:30:11
 */
@Dict(name = "出版社")
@ApiModel(description = "出版社对象")
public class Publisher extends BaseEntity<String>{

    private static final long serialVersionUID = 1L;

    /**
     * 外研社
     */
    public static final String FLTRP = "fltrp";

    /** 名称 */
    @Excel(name = "名称", sort=0)
    @ApiModelProperty(name="name", required = true, value="名称")
    private String name;

    /** 地址 */
    @Excel(name = "地址", sort=10)
    @DefaultValue
    @ApiModelProperty(name="address", required = false, value="地址")
    private String address;

    /** 联系电话 */
    @Excel(name = "联系电话", sort=20)
    @DefaultValue
    @ApiModelProperty(name="tel", required = false, value="联系电话")
    private String tel;

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    

    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("address", getAddress())
            .append("tel", getTel())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
